
import { _decorator, Component, instantiate, Node, Prefab, sp } from 'cc';
const { ccclass, property } = _decorator;

 
@ccclass('AppLauncher')
export class AppLauncher extends Component {
    static Instance : AppLauncher = null;

    @property(Node)
    Canvas : Node = null;

    @property(Prefab)
    UIBattleField : Prefab = null;

    @property(Prefab)
    UIBattleEnd : Prefab = null;

    @property(Prefab)
    UITimer : Prefab = null;

    @property(Prefab)
    Charactor : Prefab = null;

    @property([sp.SkeletonData])
    SkeletonDatas: sp.SkeletonData[] = [];

    @property(Prefab)
    UIBattleScene : Prefab = null;

    protected onLoad(): void {
        
        if(!AppLauncher.Instance)
        {
            AppLauncher.Instance = this;
        }
        else
        {
            return ;
        }

        // var UIBattleField = instantiate(this.UIBattleField);
        // this.Canvas.addChild(UIBattleField);
        // var player = instantiate(this.Player);
        // this.Canvas.addChild(player);
    }

    start () {
        
    }

    
}